class Constant {
  Map<String, dynamic>? amountList; /// 月收入
  Map<String, dynamic>? bankList; /// 银行
  Map<String, dynamic>? companyList; /// 单位性质
  Map<String, dynamic>? eduList; /// 学历
  Map<String, dynamic>? genderList; /// 性别
  Map<String, dynamic>? industryList; /// 所属行业
  Map<String, dynamic>? liveHouseList; /// 住房类型
  Map<String, dynamic>? marriageList; /// 婚姻
  Map<String, dynamic>? professionList; /// 职业
  Map<String, dynamic>? earnList; /// 收入类型
  Map<String, dynamic>? relationList; /// 联系人关系
  Map<String, dynamic>? timeList; /// 借款期限
  Map<String, dynamic>? useList; /// 借款用途
  Map<String, dynamic>? carList; /// 车辆信息
  Map<String, dynamic>? socialList; /// 社保缴纳
  Map<String, dynamic>? insuranceList; /// 保单信息
  Map<String, dynamic>? zmScoreList; /// 芝麻分
  Map<String, dynamic>? accumulationList; /// 公积金

  Constant(
      {this.amountList,
        this.bankList,
        this.companyList,
        this.eduList,
        this.genderList,
        this.industryList,
        this.liveHouseList,
        this.marriageList,
        this.professionList,
        this.earnList,
        this.relationList,
        this.timeList,
        this.useList,
        this.carList,
        this.socialList,
        this.insuranceList,
        this.zmScoreList,
        this.accumulationList,
      });

  Constant.fromJson(Map<String, dynamic> json) {
    amountList = json['amount_list'];
    bankList = json['bank_list'];
    companyList = json['company_list'];
    eduList = json['edu_list'];
    genderList = json['gender_list'];
    industryList = json['industry_list'];
    liveHouseList = json['live_house_list'];
    marriageList = json['marriage_list'];
    professionList = json['profession_list'];
    earnList = json['earn_list'];
    relationList = json['relation_list'];
    timeList = json['time_list'];
    useList = json['use_list'];
    carList = json['car_list'];
    socialList = json['social_list'];
    insuranceList = json['insurance_list'];
    zmScoreList = json['zm_score_list'];
    accumulationList = json['accumulation_list'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (amountList != null) {
      data['amount_list'] = amountList;
    }
    if (bankList != null) {
      data['bank_list'] = bankList;
    }
    if (companyList != null) {
      data['company_list'] = companyList;
    }
    if (eduList != null) {
      data['edu_list'] = eduList;
    }
    if (genderList != null) {
      data['gender_list'] = genderList;
    }
    if (industryList != null) {
      data['industry_list'] = industryList;
    }
    if (liveHouseList != null) {
      data['live_house_list'] = liveHouseList;
    }
    if (marriageList != null) {
      data['marriage_list'] = marriageList;
    }
    if (professionList != null) {
      data['profession_list'] = professionList;
    }
    if (earnList != null) {
      data['earn_list'] = earnList;
    }
    if (relationList != null) {
      data['relation_list'] = relationList;
    }
    if (timeList != null) {
      data['time_list'] = timeList;
    }
    if (useList != null) {
      data['use_list'] = useList;
    }
    return data;
  }
}